package FCRendering;

public class NpcBundle {

    public int stopTimes = 0;

    public NpcBundle(String name, int oriX, int oriY, int dir, String actionType){
        npcName = name;
        locationX = oriX;
        locationY = oriY;
        targetX = locationX;
        targetY = locationY;
        actionNum = 0;
        npcDir = dir;
        offSetX = 0;
        offSetY = 0;
        routeId = 0;
        actType = actionType;
    }

    public boolean isContainXY(String asd){
        boolean t = asd.equals(locationX+"*"+locationY);
        if(t && (offSetX != 0 || offSetY != 0)) {
            //意思是这个npc正在行走中，占的坑可以让出来
            return false;
        }
        return t;
    }

    public String actType;
    public String npcName;
    public int locationX;

    public int locationY;

    public int targetX;

    public int targetY;

    public int actionNum;

    public int npcDir;

    public int offSetX;

    public int offSetY;

    public int routeId;
}
